package com.github.zihang.controller;

import com.github.zihang.remote.UserFeignHystrixRemote;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @ClassName UserManagementController
 * @DESCRIPTION TODO
 * @Author RuanlinJing
 * @Date 2018/6/19 14:22
 * @Version 1.0
 **/
@RestController
public class UserClientFeignHystrixController {
    @Autowired
    private UserFeignHystrixRemote userFeignHystrixRemote;

    @GetMapping("/listUsersByFeign")
    public String listUsersByFeign(){
        return userFeignHystrixRemote.listUsers();
    }
}
